using DG.Tweening;
using UnityEngine;
using UnityEngine.UI;

public class UIDeath : MonoBehaviour
{
	public CanvasGroup contentGroup;

	public Text killerText;

	public void Show()
	{
		base.gameObject.SetActive(value: true);
		contentGroup.alpha = 0f;
		contentGroup.DOFade(1f, 0.2f);
		if ((bool)CameraManager.Instance)
		{
			CameraManager.Instance.ToggleGrayscale(s: true);
		}
	}

	public void Hide()
	{
		base.gameObject.SetActive(value: false);
		if ((bool)CameraManager.Instance)
		{
			CameraManager.Instance.ToggleGrayscale(s: false);
		}
	}

	public void SetKillerName(string pseudo, Color color)
	{
		killerText.text = string.Format(LocalizationManager.GetTranslation("TXT_GAME_EATEN_BY"), $"<color=#{ColorUtility.ToHtmlStringRGB(color)}>{pseudo}</color>");
	}

	public void SetRespawnDelay(float remainingTime)
	{
	}
}
